from app import app
from app.modles import Todo
from flask_script import Manager

manager = Manager(app)

@manager.command
def save():
	todo = Todo(content='study flask')
	todo.save()

def query():
	todos = Todo.objects().first
	for todo in todos:
		print todo

if __name__=='__main__':
	manager.run()